package com.jiji.miaosha.mapper;

import com.jiji.miaosha.entity.Promo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PromoMapper {

    @Select("select * from promo where item_id=#{itemId}")
    Promo getPromoByItemId(@Param("itemId") Integer itemId);

    @Select("select * from promo where id=#{id}")
    Promo getPromoById(@Param("id")Integer id);

}
